<template>
  <div style="width: 100%; text-align: center">
    <el-table :data="NewGoodList" style="width: 100%">
      <el-table-column prop="list_pic_url" label="图片" width="180" height="100" align="center">
        <template slot-scope="scope">
          <span style="margin-left: 10px" @click="handlerClick(scope.row)"
            ><img :src="scope.row.list_pic_url" alt="" style="width: 100%; height: 100%"
          /></span>
        </template>
      </el-table-column>
      <el-table-column prop="id" label="序号" width="200"> </el-table-column>
      <el-table-column prop="name" label="名字" width="280"> </el-table-column>
      <el-table-column prop="retail_price" label="价格" width="180"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: ['NewGoodList'],
  data() {
    return {};
  },
  methods: {
    handlerClick(row) {
      this.$router.push('/coding/home/detail/' + row.id);
    },
  },
};
</script>

<style></style>
